package model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RetireExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RetireExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRetirenoIsNull() {
            addCriterion("retireNo is null");
            return (Criteria) this;
        }

        public Criteria andRetirenoIsNotNull() {
            addCriterion("retireNo is not null");
            return (Criteria) this;
        }

        public Criteria andRetirenoEqualTo(Integer value) {
            addCriterion("retireNo =", value, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetirenoNotEqualTo(Integer value) {
            addCriterion("retireNo <>", value, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetirenoGreaterThan(Integer value) {
            addCriterion("retireNo >", value, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetirenoGreaterThanOrEqualTo(Integer value) {
            addCriterion("retireNo >=", value, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetirenoLessThan(Integer value) {
            addCriterion("retireNo <", value, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetirenoLessThanOrEqualTo(Integer value) {
            addCriterion("retireNo <=", value, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetirenoIn(List<Integer> values) {
            addCriterion("retireNo in", values, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetirenoNotIn(List<Integer> values) {
            addCriterion("retireNo not in", values, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetirenoBetween(Integer value1, Integer value2) {
            addCriterion("retireNo between", value1, value2, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetirenoNotBetween(Integer value1, Integer value2) {
            addCriterion("retireNo not between", value1, value2, "retireno");
            return (Criteria) this;
        }

        public Criteria andRetiredateIsNull() {
            addCriterion("retireDate is null");
            return (Criteria) this;
        }

        public Criteria andRetiredateIsNotNull() {
            addCriterion("retireDate is not null");
            return (Criteria) this;
        }

        public Criteria andRetiredateEqualTo(Date value) {
            addCriterion("retireDate =", value, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetiredateNotEqualTo(Date value) {
            addCriterion("retireDate <>", value, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetiredateGreaterThan(Date value) {
            addCriterion("retireDate >", value, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetiredateGreaterThanOrEqualTo(Date value) {
            addCriterion("retireDate >=", value, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetiredateLessThan(Date value) {
            addCriterion("retireDate <", value, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetiredateLessThanOrEqualTo(Date value) {
            addCriterion("retireDate <=", value, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetiredateIn(List<Date> values) {
            addCriterion("retireDate in", values, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetiredateNotIn(List<Date> values) {
            addCriterion("retireDate not in", values, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetiredateBetween(Date value1, Date value2) {
            addCriterion("retireDate between", value1, value2, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetiredateNotBetween(Date value1, Date value2) {
            addCriterion("retireDate not between", value1, value2, "retiredate");
            return (Criteria) this;
        }

        public Criteria andRetireidIsNull() {
            addCriterion("retireID is null");
            return (Criteria) this;
        }

        public Criteria andRetireidIsNotNull() {
            addCriterion("retireID is not null");
            return (Criteria) this;
        }

        public Criteria andRetireidEqualTo(Integer value) {
            addCriterion("retireID =", value, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetireidNotEqualTo(Integer value) {
            addCriterion("retireID <>", value, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetireidGreaterThan(Integer value) {
            addCriterion("retireID >", value, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetireidGreaterThanOrEqualTo(Integer value) {
            addCriterion("retireID >=", value, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetireidLessThan(Integer value) {
            addCriterion("retireID <", value, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetireidLessThanOrEqualTo(Integer value) {
            addCriterion("retireID <=", value, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetireidIn(List<Integer> values) {
            addCriterion("retireID in", values, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetireidNotIn(List<Integer> values) {
            addCriterion("retireID not in", values, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetireidBetween(Integer value1, Integer value2) {
            addCriterion("retireID between", value1, value2, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetireidNotBetween(Integer value1, Integer value2) {
            addCriterion("retireID not between", value1, value2, "retireid");
            return (Criteria) this;
        }

        public Criteria andRetirecauseIsNull() {
            addCriterion("retireCause is null");
            return (Criteria) this;
        }

        public Criteria andRetirecauseIsNotNull() {
            addCriterion("retireCause is not null");
            return (Criteria) this;
        }

        public Criteria andRetirecauseEqualTo(String value) {
            addCriterion("retireCause =", value, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseNotEqualTo(String value) {
            addCriterion("retireCause <>", value, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseGreaterThan(String value) {
            addCriterion("retireCause >", value, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseGreaterThanOrEqualTo(String value) {
            addCriterion("retireCause >=", value, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseLessThan(String value) {
            addCriterion("retireCause <", value, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseLessThanOrEqualTo(String value) {
            addCriterion("retireCause <=", value, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseLike(String value) {
            addCriterion("retireCause like", value, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseNotLike(String value) {
            addCriterion("retireCause not like", value, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseIn(List<String> values) {
            addCriterion("retireCause in", values, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseNotIn(List<String> values) {
            addCriterion("retireCause not in", values, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseBetween(String value1, String value2) {
            addCriterion("retireCause between", value1, value2, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirecauseNotBetween(String value1, String value2) {
            addCriterion("retireCause not between", value1, value2, "retirecause");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanIsNull() {
            addCriterion("retireHandleMan is null");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanIsNotNull() {
            addCriterion("retireHandleMan is not null");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanEqualTo(String value) {
            addCriterion("retireHandleMan =", value, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanNotEqualTo(String value) {
            addCriterion("retireHandleMan <>", value, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanGreaterThan(String value) {
            addCriterion("retireHandleMan >", value, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanGreaterThanOrEqualTo(String value) {
            addCriterion("retireHandleMan >=", value, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanLessThan(String value) {
            addCriterion("retireHandleMan <", value, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanLessThanOrEqualTo(String value) {
            addCriterion("retireHandleMan <=", value, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanLike(String value) {
            addCriterion("retireHandleMan like", value, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanNotLike(String value) {
            addCriterion("retireHandleMan not like", value, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanIn(List<String> values) {
            addCriterion("retireHandleMan in", values, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanNotIn(List<String> values) {
            addCriterion("retireHandleMan not in", values, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanBetween(String value1, String value2) {
            addCriterion("retireHandleMan between", value1, value2, "retirehandleman");
            return (Criteria) this;
        }

        public Criteria andRetirehandlemanNotBetween(String value1, String value2) {
            addCriterion("retireHandleMan not between", value1, value2, "retirehandleman");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}